<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>文本自动换行</title>
    <style>
      P {
        width: 200px;
        border: 1px solid #000;
        /*-ms-word-wrap: normal;
            word-wrap: normal;*/
        -ms-word-wrap: break-word; /*处理IE95以下的版本做兼容*/
        word-wrap: break-word;
      }
    </style>
  </head>
  <body>
    <p>
      Dad only had to hear the song twice beforhelearned it well enough to play
      it."Davey, Davey Crockett, King of the Wild Frontier" was a favorite song
      for the family.
    </p>
  </body>
</html>
